import React from 'react'
import { HashRouter } from 'react-router-dom'
import {  Route } from 'react-router'
import Container from 'container'
import Login from 'pages/login'
import createBrowserHistory from 'history/createBrowserHistory'
import ProtectedRoute from "./protectedRoute"
const customHistory = createBrowserHistory();

const routes = (
  <HashRouter history={customHistory} >
    <div>
        <ProtectedRoute  path="/" component={Container} />
        <Route  path="/login" component={Login} />
       {/* <Redirect from='*' to='/login' />*/}
    </div>
  </HashRouter>
)

export default routes;
